package com.ultrasoft.farmasoft.web;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ultrasoft.farmasoft.util.UtilCommon;


@Controller
@RequestMapping(value="/ProductAndActiveSubstance")
public class PruebaController {
	
	@RequestMapping(value="/p", method=RequestMethod.GET)
	public String handleRequestProviderP(HttpServletRequest request, Model model) throws ServletException {
		Integer.parseInt("sdfasdfdf");
		return UtilCommon.fProducts+"p";
	}
	
	
	
	
	@RequestMapping(value="/q", method=RequestMethod.GET)
	public String handleRequestProviderQ(HttpServletRequest request, Model model) throws ServletException {
		return UtilCommon.fProducts+"q";
	}
}
